package cn.csc.module.shoppingCard.convert.points;

import java.util.*;

import cn.csc.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.csc.module.shoppingCard.controller.admin.points.vo.*;
import cn.csc.module.shoppingCard.dal.dataobject.points.CardPointsDO;

/**
 * 购物卡积分 Convert
 *
 * @author liuchuang
 */
@Mapper
public interface CardPointsConvert {

    CardPointsConvert INSTANCE = Mappers.getMapper(CardPointsConvert.class);

    CardPointsDO convert(CardPointsCreateReqVO bean);

    CardPointsDO convert(CardPointsUpdateReqVO bean);

    CardPointsRespVO convert(CardPointsDO bean);

    List<CardPointsRespVO> convertList(List<CardPointsDO> list);

    PageResult<CardPointsRespVO> convertPage(PageResult<CardPointsDO> page);

    List<CardPointsExcelVO> convertList02(List<CardPointsDO> list);

}
